package org.example;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import java.io.File;
import java.util.List;
import java.util.Map;

import static org.example.BeanDefinition.analysis;

public class BeanDefinition {
    public static Document analysis(String url) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        File file = new File(url);
        SAXReader reader = new SAXReader();
        Document document = null;
        try {
            document = reader.read(file);
        } catch (DocumentException e) {
            e.printStackTrace();
        }
        return document;
    }
}
